package com.fyzk.bean;

/**
 * Created by miao on 2017/4/26.
 */

public class RedPacketReceive {


    /**
     * id : 170425000000000361
     * givePhone : 15201159226
     * receivePhone : 18614031556
     * amount : 200
     * status : 1
     * receiveTime : 2017-04-26 15:48:52
     * giveTime : 2017-04-25 18:53:37
     * expiryTime : 2017-04-26 18:53:37
     */

    private String id;
    private String givePhone;
    private String receivePhone;
    private double amount;
    private int status;
    private String receiveTime;
    private String giveTime;
    private String expiryTime;

    @Override
    public boolean equals(Object obj) {
        if(obj!=null){
            RedPacketReceive redPacketReceive = (RedPacketReceive) obj;
            return  redPacketReceive.getId().equals(this.id);
        }
        return super.equals(obj);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getGivePhone() {
        return givePhone;
    }

    public void setGivePhone(String givePhone) {
        this.givePhone = givePhone;
    }

    public String getReceivePhone() {
        return receivePhone;
    }

    public void setReceivePhone(String receivePhone) {
        this.receivePhone = receivePhone;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getReceiveTime() {
        return receiveTime;
    }

    public void setReceiveTime(String receiveTime) {
        this.receiveTime = receiveTime;
    }

    public String getGiveTime() {
        return giveTime;
    }

    public void setGiveTime(String giveTime) {
        this.giveTime = giveTime;
    }

    public String getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(String expiryTime) {
        this.expiryTime = expiryTime;
    }
}
